package zz.demo.springCloud.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "secKillQueue")
public class SecKillListenerService {

    @RabbitHandler
    public void process(String username){
        System.out.println(username);
    }
}
